67 research outputs found

    Convex Configurations on Nana-kin-san Puzzle

    Get PDF
    We investigate a silhouette puzzle that is recently developed based on the golden ratio. Traditional silhouette puzzles are based on a simple tile. For example, the tangram is based on isosceles right triangles; that is, each of seven pieces is formed by gluing some identical isosceles right triangles. Using the property, we can analyze it by hand, that is, without computer. On the other hand, if each piece has no special property, it is quite hard even using computer since we have to handle real numbers without numerical errors during computation. The new silhouette puzzle is between them; each of seven pieces is not based on integer length and right angles, but based on golden ratio, which admits us to represent these seven pieces in some nontrivial way. Based on the property, we develop an algorithm to handle the puzzle, and our algorithm succeeded to enumerate all convex shapes that can be made by the puzzle pieces. It is known that the tangram and another classic silhouette puzzle known as Sei-shonagon chie no ita can form 13 and 16 convex shapes, respectively. The new puzzle, Nana-kin-san puzzle, admits to form 62 different convex shapes

    Finding Top-k Longest Palindromes in Substrings

    Full text link
    Palindromes are strings that read the same forward and backward. Problems of computing palindromic structures in strings have been studied for many years with a motivation of their application to biology. The longest palindrome problem is one of the most important and classical problems regarding palindromic structures, that is, to compute the longest palindrome appearing in a string TT of length nn. The problem can be solved in O(n)O(n) time by the famous algorithm of Manacher [Journal of the ACM, 1975]. This paper generalizes the longest palindrome problem to the problem of finding top-kk longest palindromes in an arbitrary substring, including the input string TT itself. The internal top-kk longest palindrome query is, given a substring T[i..j]T[i..j] of TT and a positive integer kk as a query, to compute the top-kk longest palindromes appearing in T[i..j]T[i.. j]. This paper proposes a linear-size data structure that can answer internal top-kk longest palindromes query in optimal O(k)O(k) time. Also, given the input string TT, our data structure can be constructed in O(nlogn)O(n\log n) time. For k=1k = 1, the construction time is reduced to O(n)O(n)

    How to collect balls moving in the Euclidean plane

    Get PDF
    AbstractIn this paper, we study how to collect n balls moving with a fixed constant velocity in the Euclidean plane by k robots moving on straight track-lines through the origin. Since all the balls might not be caught by robots, differently from Moving-target TSP, we consider the following 3 problems in various situations: (i) deciding if k robots can collect all n balls; (ii) maximizing the number of the balls collected by k robots; (iii) minimizing the number of the robots to collect all n balls. The situations considered in this paper contain the cases in which track-lines are given (or not), and track-lines are identical (or not). For all problems and situations, we provide polynomial time algorithms or proofs of intractability, which clarify the tractability–intractability frontier in the ball collecting problems in the Euclidean plane
    corecore